package com.hk.webapp.dao;

import com.hk.webapp.bean.CmsCategory;
import com.hk.webapp.vo.UpdateActionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CmsCategoryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CmsCategory record);

    int insertSelective(CmsCategory record);

    CmsCategory selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CmsCategory record);

    int updateByPrimaryKey(CmsCategory record);

    List<CmsCategory> getEntityList();

    List<CmsCategory> getEntityListByIds(@Param("ids") String ids);

    int updateFieldValue(UpdateActionVo vo);

    int softDelByIds(@Param("ids") List<Integer> ids);

    List<CmsCategory> getEntityListByPid(Integer pid);

    CmsCategory getEntityByCode(String code);
}